package com.huilian.tool.work.weixin.dto;

import com.huilian.tool.common.utils.WorkWeiXinUtil;
import lombok.Data;


/**
 * @Author 少凡
 * @Date 2022-07-14 18:21
 * version 1.0
 */
@Data
public class QueryParamStats{

    private String[] userid;
    private String[] partyid;
    private long day_begin_time;
    private long day_end_time;
    private Integer order_by;
    private Integer order_asc;
    private Integer offset;
    private OwnerFilter owner_filter;
    private long start_time;
    private long end_time;
    private String limit;  //返回的最大记录数

    public void setStart_time(String startTime) {
        this.start_time = WorkWeiXinUtil.formatTime(startTime);
    }

    public void setEnd_time(String endTime) {
        this.end_time = this.start_time = WorkWeiXinUtil.formatTime(endTime);;
    }

    public void setDay_begin_time(String dayBeginTime) {
        this.day_begin_time = WorkWeiXinUtil.formatTime(dayBeginTime);;
    }

    public void setDay_end_time(String dayEndTime) {
        this.day_end_time =  WorkWeiXinUtil.formatTime(dayEndTime);;
    }


    @Data
    public static class OwnerFilter{
        private String[] userid_list;
    }

}
